//package com.example.langchain4j.demo;
//
//
//public class Main {
//    public static void main(String[] args) {
//        OpenAIClient client = OpenAIOkHttpClient.builder()
//                .apiKey(System.getenv("DASHSCOPE_API_KEY"))
//                .baseUrl("https://dashscope.aliyuncs.com/compatible-mode/v1")
//                .build();
//        ChatCompletionCreateParams params = ChatCompletionCreateParams.builder()
//                .addUserMessage("你是谁")
//                .model("qwen-plus")
//                .build();
//        ChatCompletion chatCompletion = client.chat().completions().create(params);
//        System.out.println(chatCompletion.choices().get(0).message().content().orElse("无返回内容"));
//    }
//}